home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / snip0493.zip / UNIX2DOS.C < prev    next >
C/C++ Source or Header  |  1993-04-05  |  267b  |  16 lines

  1. /*
  2. **  UNIX2DOS.C - Convert Unix-style pathnames to DOS-style
  3. **
  4. **  public domain by Bob Stout
  5. */
  6.  
  7. char *unix2dos(char *path)
  8. {
  9.       char *p;
  10.  
  11.       for (p = path; *p; ++p)
  12.             if ('/' == *p)
  13.                   *p = '\\';
  14.       return path;
  15. }
  16.